<?php
get_header(); 

// To Show Banner and Title
get_template_part( 'inc/title-bar' ); 
?>

<!--OPENING CONTENT-->
<div id="content">
        
        
        <?php 
		// Include Breadcrumb Bar
		get_template_part( 'inc/breadcrumb-sharebar' ); 
		 ?>
        
  		
        <div class="listing">				
				<?php 										
					$i = 0;						
					if ( have_posts() ) 
					{
						while ( have_posts() ) : 
							the_post(); 
							$i++;
							?>
			                <div class="property-item <?php if ($i % 2 == 0) { echo "even"; } ?>" >
								<?php get_template_part( 'inc/display-property' ); ?>                        
			                </div>							 
							 <?php 							 
							 if ($i % 2 == 0) 
							 {
								 echo '<hr/>';						 
							 }				 
				 		endwhile;
					}
			?>			                
     	</div>
		
        <!-- PAGINATION -->
        <?php theme_pagination($wp_query->max_num_pages); ?>
        
</div><!-- CLOSING CONTENT--> 

<!-- SIDEBAR -->
<?php get_sidebar('blog'); ?>

<!-- FOOTER -->
<?php get_footer(); ?>